# 随便写写，无需在意
import os
import time

print(__file__) # /root/PycharmProjects/api-auto-test-for-industry/AutoTest04/jwtest/ls.py

print(os.path.dirname(__file__)) # /root/PycharmProjects/api-auto-test-for-industry/AutoTest04/jwtest

print(os.path.dirname(os.path.dirname(__file__))) # /root/PycharmProjects/api-auto-test-for-industry/AutoTest04

project_path = os.path.dirname(os.path.dirname(__file__))
log_path = project_path + os.sep + 'log'
print(os.path.join(log_path, 'jw1.log'))

print(time.localtime())
print(time.strftime('%Y_%m_%d %H_%M_%S', time.localtime()))